import { Subject } from 'rxjs';

/**
 * MAINFORM_ORGSECTOR
 *
 * @export
 * @class Main2Data
 */
export class Main2Data {

    /**
     * 忽略属性值变化
     *
     * @type {boolean}
     * @memberof Main2Data
     */
    public ignorefieldvaluechange: boolean = false;

    /**
     * 属性值变化
     *
     * @type {Subject<any>}
     * @memberof Main2Data
     */
    public fieldValueChange: Subject<any> = new Subject();

    /**
     * 更新时间
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _srfupdatedate: any = null;

    /**
     * 设置srfupdatedate值
     *
     * @memberof Main2Data
     */
    set srfupdatedate(val: any) {
        const oldVal = this._srfupdatedate;
        this._srfupdatedate = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'srfupdatedate', value: val });
        }
    }

    /**
     * 获取srfupdatedate值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get srfupdatedate(): any {
        return this._srfupdatedate;
    }

    /**
     * 
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _srforikey: any = null;

    /**
     * 设置srforikey值
     *
     * @memberof Main2Data
     */
    set srforikey(val: any) {
        const oldVal = this._srforikey;
        this._srforikey = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'srforikey', value: val });
        }
    }

    /**
     * 获取srforikey值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get srforikey(): any {
        return this._srforikey;
    }

    /**
     * 部门标识
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _srfkey: any = null;

    /**
     * 设置srfkey值
     *
     * @memberof Main2Data
     */
    set srfkey(val: any) {
        const oldVal = this._srfkey;
        this._srfkey = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'srfkey', value: val });
        }
    }

    /**
     * 获取srfkey值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get srfkey(): any {
        return this._srfkey;
    }

    /**
     * 部门名称
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _srfmajortext: any = null;

    /**
     * 设置srfmajortext值
     *
     * @memberof Main2Data
     */
    set srfmajortext(val: any) {
        const oldVal = this._srfmajortext;
        this._srfmajortext = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'srfmajortext', value: val });
        }
    }

    /**
     * 获取srfmajortext值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get srfmajortext(): any {
        return this._srfmajortext;
    }

    /**
     * 
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _srftempmode: any = null;

    /**
     * 设置srftempmode值
     *
     * @memberof Main2Data
     */
    set srftempmode(val: any) {
        const oldVal = this._srftempmode;
        this._srftempmode = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'srftempmode', value: val });
        }
    }

    /**
     * 获取srftempmode值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get srftempmode(): any {
        return this._srftempmode;
    }

    /**
     * 
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _srfuf: any = null;

    /**
     * 设置srfuf值
     *
     * @memberof Main2Data
     */
    set srfuf(val: any) {
        const oldVal = this._srfuf;
        this._srfuf = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'srfuf', value: val });
        }
    }

    /**
     * 获取srfuf值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get srfuf(): any {
        return this._srfuf;
    }

    /**
     * 
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _srfdeid: any = null;

    /**
     * 设置srfdeid值
     *
     * @memberof Main2Data
     */
    set srfdeid(val: any) {
        const oldVal = this._srfdeid;
        this._srfdeid = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'srfdeid', value: val });
        }
    }

    /**
     * 获取srfdeid值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get srfdeid(): any {
        return this._srfdeid;
    }

    /**
     * 
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _srfsourcekey: any = null;

    /**
     * 设置srfsourcekey值
     *
     * @memberof Main2Data
     */
    set srfsourcekey(val: any) {
        const oldVal = this._srfsourcekey;
        this._srfsourcekey = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'srfsourcekey', value: val });
        }
    }

    /**
     * 获取srfsourcekey值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get srfsourcekey(): any {
        return this._srfsourcekey;
    }

    /**
     * 组织机构
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _orgname: any = null;

    /**
     * 设置orgname值
     *
     * @memberof Main2Data
     */
    set orgname(val: any) {
        const oldVal = this._orgname;
        this._orgname = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'orgname', value: val });
        }
    }

    /**
     * 获取orgname值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get orgname(): any {
        return this._orgname;
    }

    /**
     * 上级部门
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _porgsectorname: any = null;

    /**
     * 设置porgsectorname值
     *
     * @memberof Main2Data
     */
    set porgsectorname(val: any) {
        const oldVal = this._porgsectorname;
        this._porgsectorname = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'porgsectorname', value: val });
        }
    }

    /**
     * 获取porgsectorname值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get porgsectorname(): any {
        return this._porgsectorname;
    }

    /**
     * 部门名称
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _orgsectorname: any = null;

    /**
     * 设置orgsectorname值
     *
     * @memberof Main2Data
     */
    set orgsectorname(val: any) {
        const oldVal = this._orgsectorname;
        this._orgsectorname = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'orgsectorname', value: val });
        }
    }

    /**
     * 获取orgsectorname值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get orgsectorname(): any {
        return this._orgsectorname;
    }

    /**
     * 部门组织编号
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _orgcode: any = null;

    /**
     * 设置orgcode值
     *
     * @memberof Main2Data
     */
    set orgcode(val: any) {
        const oldVal = this._orgcode;
        this._orgcode = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'orgcode', value: val });
        }
    }

    /**
     * 获取orgcode值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get orgcode(): any {
        return this._orgcode;
    }

    /**
     * 简称
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _shortname: any = null;

    /**
     * 设置shortname值
     *
     * @memberof Main2Data
     */
    set shortname(val: any) {
        const oldVal = this._shortname;
        this._shortname = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'shortname', value: val });
        }
    }

    /**
     * 获取shortname值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get shortname(): any {
        return this._shortname;
    }

    /**
     * 汇报部门
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _reporgsectorname: any = null;

    /**
     * 设置reporgsectorname值
     *
     * @memberof Main2Data
     */
    set reporgsectorname(val: any) {
        const oldVal = this._reporgsectorname;
        this._reporgsectorname = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'reporgsectorname', value: val });
        }
    }

    /**
     * 获取reporgsectorname值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get reporgsectorname(): any {
        return this._reporgsectorname;
    }

    /**
     * 启用标志
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _validflag: any = null;

    /**
     * 设置validflag值
     *
     * @memberof Main2Data
     */
    set validflag(val: any) {
        const oldVal = this._validflag;
        this._validflag = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'validflag', value: val });
        }
    }

    /**
     * 获取validflag值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get validflag(): any {
        return this._validflag;
    }

    /**
     * 显示次序
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _ordervalue: any = null;

    /**
     * 设置ordervalue值
     *
     * @memberof Main2Data
     */
    set ordervalue(val: any) {
        const oldVal = this._ordervalue;
        this._ordervalue = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'ordervalue', value: val });
        }
    }

    /**
     * 获取ordervalue值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get ordervalue(): any {
        return this._ordervalue;
    }

    /**
     * 虚拟部门
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _virtualflag: any = null;

    /**
     * 设置virtualflag值
     *
     * @memberof Main2Data
     */
    set virtualflag(val: any) {
        const oldVal = this._virtualflag;
        this._virtualflag = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'virtualflag', value: val });
        }
    }

    /**
     * 获取virtualflag值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get virtualflag(): any {
        return this._virtualflag;
    }

    /**
     * 级别编码
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _levelcode: any = null;

    /**
     * 设置levelcode值
     *
     * @memberof Main2Data
     */
    set levelcode(val: any) {
        const oldVal = this._levelcode;
        this._levelcode = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'levelcode', value: val });
        }
    }

    /**
     * 获取levelcode值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get levelcode(): any {
        return this._levelcode;
    }

    /**
     * 条线代码
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _bizcode: any = null;

    /**
     * 设置bizcode值
     *
     * @memberof Main2Data
     */
    set bizcode(val: any) {
        const oldVal = this._bizcode;
        this._bizcode = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'bizcode', value: val });
        }
    }

    /**
     * 获取bizcode值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get bizcode(): any {
        return this._bizcode;
    }

    /**
     * 备注
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _memo: any = null;

    /**
     * 设置memo值
     *
     * @memberof Main2Data
     */
    set memo(val: any) {
        const oldVal = this._memo;
        this._memo = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'memo', value: val });
        }
    }

    /**
     * 获取memo值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get memo(): any {
        return this._memo;
    }

    /**
     * 建立人
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _createman: any = null;

    /**
     * 设置createman值
     *
     * @memberof Main2Data
     */
    set createman(val: any) {
        const oldVal = this._createman;
        this._createman = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'createman', value: val });
        }
    }

    /**
     * 获取createman值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get createman(): any {
        return this._createman;
    }

    /**
     * 建立时间
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _createdate: any = null;

    /**
     * 设置createdate值
     *
     * @memberof Main2Data
     */
    set createdate(val: any) {
        const oldVal = this._createdate;
        this._createdate = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'createdate', value: val });
        }
    }

    /**
     * 获取createdate值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get createdate(): any {
        return this._createdate;
    }

    /**
     * 更新人
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _updateman: any = null;

    /**
     * 设置updateman值
     *
     * @memberof Main2Data
     */
    set updateman(val: any) {
        const oldVal = this._updateman;
        this._updateman = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'updateman', value: val });
        }
    }

    /**
     * 获取updateman值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get updateman(): any {
        return this._updateman;
    }

    /**
     * 更新时间
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _updatedate: any = null;

    /**
     * 设置updatedate值
     *
     * @memberof Main2Data
     */
    set updatedate(val: any) {
        const oldVal = this._updatedate;
        this._updatedate = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'updatedate', value: val });
        }
    }

    /**
     * 获取updatedate值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get updatedate(): any {
        return this._updatedate;
    }

    /**
     * 部门标识
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _orgsectorid: any = null;

    /**
     * 设置orgsectorid值
     *
     * @memberof Main2Data
     */
    set orgsectorid(val: any) {
        const oldVal = this._orgsectorid;
        this._orgsectorid = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'orgsectorid', value: val });
        }
    }

    /**
     * 获取orgsectorid值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get orgsectorid(): any {
        return this._orgsectorid;
    }

    /**
     * 组织机构
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _orgid: any = null;

    /**
     * 设置orgid值
     *
     * @memberof Main2Data
     */
    set orgid(val: any) {
        const oldVal = this._orgid;
        this._orgid = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'orgid', value: val });
        }
    }

    /**
     * 获取orgid值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get orgid(): any {
        return this._orgid;
    }

    /**
     * 汇报部门
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _reporgsectorid: any = null;

    /**
     * 设置reporgsectorid值
     *
     * @memberof Main2Data
     */
    set reporgsectorid(val: any) {
        const oldVal = this._reporgsectorid;
        this._reporgsectorid = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'reporgsectorid', value: val });
        }
    }

    /**
     * 获取reporgsectorid值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get reporgsectorid(): any {
        return this._reporgsectorid;
    }

    /**
     * 上级部门
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _porgsectorid: any = null;

    /**
     * 设置porgsectorid值
     *
     * @memberof Main2Data
     */
    set porgsectorid(val: any) {
        const oldVal = this._porgsectorid;
        this._porgsectorid = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'porgsectorid', value: val });
        }
    }

    /**
     * 获取porgsectorid值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get porgsectorid(): any {
        return this._porgsectorid;
    }

}